package com.rc.saas.tenant.vo.enterprise;

import com.alibaba.excel.annotation.ExcelProperty;

import java.math.BigDecimal;

/**
 * @author wangzhengwei
 * @create 2021/9/29
 */
public class EnterpriseSubmemberExportVo {
    @ExcelProperty("运营商代码")
    private String tenantCode;
    @ExcelProperty("昵称")
    private String nickname;
    @ExcelProperty("手机号")
    private String mobile;
    @ExcelProperty("审核时间")
    private String createdTime;
    @ExcelProperty("企业余额")
    private BigDecimal enterpriseAccount;
    @ExcelProperty("状态")
    private String status;
    @ExcelProperty("充电状态")
    private String chargeStatus;

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public BigDecimal getEnterpriseAccount() {
        return enterpriseAccount;
    }

    public void setEnterpriseAccount(BigDecimal enterpriseAccount) {
        this.enterpriseAccount = enterpriseAccount;
    }

    public String getStatus() {
        if ("0".equals(status)){
            return "正常";
        }else if ("2".equals(status)){
            return "冻结";
        }else if ("1".equals(status)){
            return "注销";
        }else {
            return status;
        }
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getChargeStatus() {
        if ("0".equals(chargeStatus)) {
            return "不在充电";
        } else if ("1".equals(chargeStatus)) {
            return "充电中";
        }
        return chargeStatus;
    }

    public void setChargeStatus(String chargeStatus) {
        this.chargeStatus = chargeStatus;
    }
}
